/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.yourtrade.model;

import com.mycompany.yourtrade.common.BaseModel;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @author superxg
 */
@Data
@NoArgsConstructor
public class AjaxData<T> extends BaseModel {
    
    private Integer draw;
    
   
    private Integer recordsTotal;
    
    
    private Integer recordsFiltered;
    
    
    private List<T> data;
    
    
    
    public AjaxData(Integer draw,
                    Integer recordsTotal,
                    Integer recordsFiltered,
                    List<T> data) {
        this.draw = draw;
        this.recordsTotal = recordsTotal;
        this.recordsFiltered = recordsFiltered;
        this.data = data;
    }
}
